﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using DataAccessLayer.Implementation;

namespace BusinessComponents.Implementation
{
    public class BookingGuestBLL
    {

        private BookingGuestRepository repo = new BookingGuestRepository();
        public IEnumerable<BookingGuest> FindALLBookingGuest()
        {
            return repo.GetAll();
        }

        public IEnumerable<BookingGuest> FindByGuestID(int guestID)
        {
            return repo.GetAll().Where(o => o.GuestID == guestID);
        }
    }
}
